//import java.util.Arrays;
import java.util.Date;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: $ {USER}
 * Date: $ {YEAR}-$ {MONTH}一$ { DAY}
 * Time: ${ TIME}
 */
/*public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 1; i <= n; i++) {
            int j = 2;
            for (; j <= i/2; j++) {
                if(i % j == 0){
                    break;
                }
            }
            if(j > i/2){
                System.out.println(i);
            }
        }
    }
}*/


/*public class Test{
    public static void main(String[] args) {
        Student student = new Student();
        student.func();
    }
}


class Student{
    public String name = "张三";
    public int age = 18;

    public void func(){
        System.out.println("姓名："+name+" 年龄："+age);
    }
}*/


/*
public class Test{
    public static void main(String[] args) {
        Student student = new Student();
        //Student student =new Student("张三", 18);
        //student.func();
    }
}


class Student{
    public String name;
    public int age;

    public Student(int age) {
        this.age = age;
    }

    public Student(String name) {
        this.name = name;
    }

    public Student(){
        this("王五",20);//调用带有两个参数（一个是String类型，一个是int类型）的构造方法
        System.out.println("hehe");
    }
    public Student(String name, int age){
        System.out.println("haha");
    }
    public void func(){
        System.out.println("姓名："+name+" 年龄："+age);
    }
}
*/

import java.sql.*;
/*import java.util.*;
public class Test {
    public static void main(String[] args) {
        Person person =new Person();
        person.name = "张三";
    }

    int[] array = new int[]{1,2,3,4};
    String ret = Arrays.toString(array);

    //util和sql中都存在一个Date这样的类, 此时就会出现歧义,编译器不知道该用哪个
    Date date = new Date();

    //java.util.Date date = new java.util.Date();
}

*/

public class Test {
    public static void main(String[] args) {
       /* Scanner scanner = new Scanner(System.in);
        //打印接收的字符
        char ch = scanner.next().charAt(0);//接收第一个字符
        System.out.println(ch);*/


        Scanner scanner = new Scanner(System.in);
        //接收一个字符
        char ch = scanner.next().charAt(0);
        //打印上半部分
        for(int i=0; i<3; i++){
            //打印空白
            for(int j=0; j<2-i; j++){
                System.out.print(" ");
            }
            //打印#
            for(int j=0; j<1+2*i; j++){
                System.out.print(ch);
            }
            System.out.println();
        }
        //打印下半部分
        for(int i=2; i>0; i--){
            //打印空白
            for(int j=0; j<3-i; j++){
                System.out.print(" ");
            }
            //打印#
            for(int j=0; j<2*i-1; j++){
                System.out.print(ch);
            }
            System.out.println();
        }
    }
}















